



import PolylineVolumeFlowMaterialShader from "../shader/polylineVolume/PolylineVolumeFlowMaterialShader.glsl?raw";


/**
 * 流动图片材质管线
 */
import image from '../image/wall/fenceline.png'

Cesium.Material.PolylineVolumeFlowMaterialType = 'PolylineVolumeFlow'
Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineVolumeFlowMaterialType, {
  fabric: {
    type: Cesium.Material.PolylineVolumeFlowMaterialType,
    uniforms: {
      speed: 1.0,
      color: Cesium.Color.SKYBLUE,
      image,
      repeat: 1.0
    },
    source: PolylineVolumeFlowMaterialShader
  },
  translucent: function (material) {
    return true
  }
})
